// 下载模板模板
import { downloadURL } from '@/config/downloadUrl.js'

// 1.订单
export const defOrderTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428111954_sino_customs_进出口货物订单导入模板.xls'
// 2.核注清单
export const defInvtTemp = '/static/tmp/核注清单导入模版.xls'
// 3.公路舱单
export const defRoadTemp = '/static/tmp/公路舱单导入模板.xlsx'
// 海运舱单
export const defSRoadTemp = '/static/tmp/海路舱单导入模板.xlsx'
// 4.报关单集装箱模板  *
export const defDeclareContainerTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112211_sino_customs_报关单集装箱模板.xls'
// 5.出口报关单货物明细 *
export const defEDeclareGoodsTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112246_sino_customs_出口报关单货物明细导入模板.xls'
// 6.导入报关单
export const defDeclareTemp = '/static/tmp/导入报关单模板.xls'
// 7.订单集装箱信息 *
// export const defOrderContainerTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112345_sino_customs_订单集装箱信息导入模板.xls'
// 8.订单商品明细 *
// export const defOrderGoodsTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112414_sino_customs_订单商品明细导入模板.xls'
// 9.进口报关单货物明细 *
export const defIDeclareGoodsTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112444_sino_customs_进口报关单货物明细导入模板.xls'
// 10.客户信息
export const defClientTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112523_sino_customs_客户信息导入模板.xls'
// 11.商品库导入模版
export const defGoodsTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-04-28/20190428112551_sino_customs_商品库导入模版.xls'
export const seaTemp = 'http://edu-test-bucket.oss-cn-shenzhen.aliyuncs.com/uploadCustoms/2019-08-30/20190830044342_sino_customs_zlfw导入.xlsx'
// 下载模板文件
export function downloadFile (fileName) {
    window.open(`${downloadURL}/ui/templateFileDownload/downloadFile?fileName=${encodeURI(fileName)}`)
}
